/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package polymorphism;

/**
 *
 * @author Iskandar Sarkawi
 */
public class Example2_v2 {

    public static void main(String[] args) {
        Animal an =new Animal();
        Spider sp = new Spider();
        Cow cw = new Cow();

        Printer_v2 p_v2 = new Printer_v2();

        p_v2.show(an);
        p_v2.show(sp);
        p_v2.show(cw);
        
    }

}
